<include file="__PUBLIC__/_header"/>
<body>
<div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try{
            ace.settings.check('navbar' , 'fixed')
        }catch(e){

        }
    </script>
    <include file="__PUBLIC__/_header_title"/><!-- /.container -->
</div>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try{
            ace.settings.check('main-container' , 'fixed')
        }catch(e){

        }
    </script>

    <div class="main-container-inner">
        <a class="menu-toggler" id="menu-toggler" href="#">
            <span class="menu-text"></span>
        </a>

        <div class="sidebar" id="sidebar">
            <script type="text/javascript">
                try{
                    ace.settings.check('sidebar' , 'fixed')}catch(e){
                }
            </script>
            <include file="__PUBLIC__/_nav"/>
            <!-- /.nav-list -->
        </div>
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try{
                        ace.settings.check('breadcrumbs' , 'fixed')
                    }catch(e){

                    }
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="{:Controller::_createUrl('index/index')}">首页</a>
                    </li>

                    <li class="active"> 公告管理 </li>
                </ul><!-- .breadcrumb -->
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12"></div>
                    <div class="col-xs-12">
                        <div class="tabbable">
                            <div class="tab-content no-border padding-24">
                                <div class="table-responsive">
                                    <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr>
                                            <th class="center">
                                                <label>
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>
                                            </th>
                                            <th>文章编号</th>
                                            <!--<th>更新时间</th>-->
                                            <th>创建时间</th>
                                            <th>标题</th>
											<!--<th>链接编号</th>-->
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <volist name="list" id="vo">
                                            <tr>
                                                <td class="center">
                                                    <label>
                                                        <input type="checkbox" class="ace" />
                                                        <span class="lbl"></span>
                                                    </label>
                                                </td>
                                                <td>
                                                    {$vo.id}
                                                </td>
                                                <td>{$vo.insert_dt}</td>
                                                <td>
                                                   {$vo.title}
                                                </td>
												<td>
													<a  href="{:Controller::_createUrl('article/edit',array('id'=>$vo['id']))}">修改</a>
													<a onclick="return confirm('确认删除吗？');" href="{:Controller::_createUrl('article/delete',array('id'=>$vo['id']))}">删除</a>
                                                </td>
                                            </tr>
                                        </volist>
                                        <tr>
                                            <td colspan="12">
                                                <a href="{:Controller::_createUrl('article/add')}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                    <span>
                                                        <i class="icon-plus bigger-120"></i>
                                                    </span>
                                                    添加
                                                </a>
                                                <ul class="pagination" style="float: right">
                                                    {$pager_html}
                                                </ul>
                                            </td>
                                        </tr>
                                        </tbody>
                                        <tfoot>
                                        </tfoot>

                                    </table>
                                </div><!-- /.table-responsive -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="icon-double-angle-up icon-only bigger-110"></i>
</a>
<link href="__SKIN__/js/colorbox/colorbox.css" rel="stylesheet" type="text/css">
<script src="__SKIN__/js/colorbox/colorbox.js" type="text/javascript"></script>
<script>
    $(document).ready(function(){
	
        $(".dialogBtn").colorbox({iframe:true, width:"85%", height:"80%"});
        
    })
</script>
</body>
</html>
